<!DOCTYPE html>
<html class="panel-fit"><head>
    <meta charset="UTF-8">
    <title>当日挂号</title>
    <link rel="stylesheet" type="text/css" href="/static/easyui/css/bootstrap/easyui.css">
    <script type="text/javascript" src="/static/jquery/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="/static/js/head.js"></script>
    <script type="text/javascript" src="/modules/register/js/todayRegister.js"></script>
    <script type="text/javascript" src="/static/data/data_register_day_time.js"></script>
    <script type="text/javascript" src="/static/data/data_clinic_dept.js"></script>
    <script type="text/javascript" src="/static/data/data_dict_sex.js"></script>
    <script type="text/javascript" src="/static/data/data_charge_type.js"></script>
    <script type="text/javascript" src="/static/data/data_dict_charge_type.js"></script>
    <script type="text/javascript" src="/static/data/data_identity_dict.js"></script>
    <script type="text/javascript" src="/static/data/data_unit_contract.js"></script>
</head>

<body>
<div style="padding: 5px;">
    <div>
        门诊号别：<input type="text" class="validatebox-text vt-text-percent" id="clinicTypeNameId" style="width: 150px;"/>
        门诊科室：<input type="text" class="easyui-combobox" style="width: 150px;" id="deptNameId"/>
        <button class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="getClinicForRegist()">查询</button>
        <!--<button class="easyui-linkbutton" data-options="iconCls:'icon-back'">读卡</button>-->
        <button class="easyui-linkbutton" data-options="iconCls:'icon-add'" onclick="openDialog('chargeId','挂号结果')">挂号</button>
        <button class="easyui-linkbutton" data-options="iconCls:'icon-remove'" onclick="openDialogRetreat('backNumberId','退号')">退号</button>
    </div>
    <div class="reglist-main" id="clinicIndex">

    </div>
    <form id="clinicForm" method="post">
    <div class="reg-cusinfo">
        <ul>
            <!--<li><span>门诊号：</span><input type="text" class="easyui-validatebox" id="clinicNo" name="clinicNo"></li>-->
            <li><span>姓名：</span><input type="text" class="easyui-validatebox" style="width: 42%"  required="true"  id="name" name="name"></li>
            <li><span>性别：</span><input type="text" class="easyui-combobox"  id="setId" name="sex" required="true" ></li>
            <li><span>出生日期：</span><input type="text" class="easyui-datebox" id="birthDate" name="birthDate" required="true" ></li>
            <li><span>费别：</span><input type="text" class="easyui-combobox" id="chargeTypeId" name="chargeType" required="true" ></li>
            <li><span>身份：</span><input type="text" class="easyui-combobox" id="identityId" name="identity"></li>
            <li><span>诊别：</span><input type="text" class="easyui-combobox" id="clinicTypeId" name="visitIndicator"></li>
            <li><span>身份证号：</span><input type="text" class="easyui-validatebox"  name="idNo" validType="idcard"></li>
            <li><span>合同单位：</span><input type="text" class="easyui-combobox" id="companyId" name="unitInContract"></li>
            <!--<li><span>医保类别：</span><input type="text" class="easyui-validatebox" id="insuType" name="insuranceType"></li>-->
            <!--<li><span>医保号：</span><input type="text" class="easyui-validatebox" id="insuId" name="insuranceNo"></li>-->
        </ul>
    </div>

    <div id="chargeId" class="easyui-dialog" style="width:27%;height:80%"   closed="true">
        <div style="height: 70%">
            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="reg-price" id="clinicLabe">

            </table>
        </div>
        <h1 class="pay-tile">
            现金支付
        </h1>
        <br>
        <div>
            实收：<input type="text"  id="receiptsId" onchange="onchangeInput()" class="easyui-validatebox validatebox-text-sm" >&nbsp;
            <input type="hidden" id="receiptsHiddenId">
            找零：<input  type="text" id="changeReceiptsId" readonly="true" class="easyui-validatebox validatebox-text-sm">
        </div>
        <br>
        <div style="text-align:right;">
            <a  class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-save'"  onclick="saveClinic()">保存</a>&nbsp;
            <button  class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-cancel'" onclick="closeDialog('chargeId')">取消</button>
        </div>
    </div>
    </form>
    </div>
    <div id="backNumberId" class="easyui-dialog"  closed="true" fit="true">
    <div style="padding:10px;">
        <div class="margb-10">
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                   <!-- <td class="text-right">门诊号：</td>
                    <td><input type="text" class="validatebox-text vt-text-percent"/></td>-->
                    <td class="text-right">就诊日期：</td>
                    <td><input type="text" class="easyui-datebox vt-text-percent" id="visitDate" style="width:150px;"/></td>
                   <!-- <td class="text-right">就诊序号：</td>
                    <td><input type="text" class="validatebox-text vt-text-percent" id="visitNo"/></td>-->
                    <td class="text-right">门诊号：</td>
                    <td><input type="text" class="validatebox-text vt-text-percent" id="clinicNoId"style="width:150px;"/></td>
                    <td>
                        <button class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="searchReturn();">提取</button>
                    </td>
                </tr>
                <!-- <tr>
                     <td class="text-right">门诊类别：</td>
                     <td><input type="text" class="validatebox-text vt-text-percent"/></td>


                </tr>-->
            </table>


        </div>

        <div class="bg-gray">
            <button class="easyui-linkbutton" data-options="iconCls:'icon-remove'" onclick="clinicReturnInfo();">退号</button>
        </div>
        <form id="regreteatInfo" method="post">
            <input type="hidden" name="id" id="clinicId">
        <div class="regretreat-info">
            <table cellpadding="0" cellspacing="0" width="100%" class="apply-tab">
                <tr>
                    <td>门诊号：</td>
                    <td><input  name="clinicNo" class="validatebox-text" ></td>
                    <td>姓名：</td>
                    <td colspan="3"><input  name="name" class="validatebox-text"></td>
                    <td>性别：</td>
                    <td><input  name="sex"class="easyui-combobox"  id="setIdt"></td>
                    <td>年龄：</td>
                    <td><input  name="age" class="validatebox-text"></td>
                </tr>
                <tr>
                    <td>费别：</td>
                    <td><input  name="chargeType" id="chargeTypeIdt" class="easyui-combobox"></td>
                    <td>合同单位：</td>
                    <td colspan="3"><input name="unitInContract" id="companyIdt" class="validatebox-text " required="true"></td>
                    <td>身份：</td>
                    <td colspan="3"><input  name="identity" id="identityIdt" class="easyui-combobox"></td>
                </tr>
                <tr>
                    <td>医保类别：</td>
                    <td><input  name="insuranceType" class="validatebox-text " required="true"></td>
                    <td>医保账号：</td>
                    <td colspan="3"><input  name="insuranceNo" class="validatebox-text " required="true"></td>
                    <td>总费用：</td>
                    <td colspan="3"><input  name="clinicCharge" class="validatebox-text " required="true" id="charge"></td>


                </tr>
                <tr>
                    <td>就诊日期：</td>
                    <td><input  name="visitDate"   class="easyui-datebox"></td>
                    <td>就诊序号：</td>
                    <td><input  name="visitNo" class="validatebox-text " required="true"></td>
                    <td>门诊时间：</td>
                    <td>
                        <input  name="visitTimeDesc"  id="visitTimeDescId"  class="easyui-combobox" >
                    </td>
                    <td>挂号状态：</td>
                    <td  colspan="3">
                        <input  name="registrationStatus" class="validatebox-text " required="true">
                    </td>
                </tr>
                <Tr>
                    <td>门诊号别：</td>
                    <td  colspan="3">
                        <input  name="clinicLabelName" class="validatebox-text" >
                    </td>
                    <td>门诊科室：</td>
                    <td  colspan="5">
                        <input  name="visitDept" id="visitDeptIdt" class="easyui-combobox" >
                    </td>

                </tr>
                <tr>
                    <td>初诊标志：</td>
                    <td>
                        <input  name="firstVisitIndicator" class="validatebox-text">
                    </td>
                    <td>提供病案：</td>
                    <td colspan="3">
                        <input  name="mrProvideIndicator" class="validatebox-text" required="true">
                    </td>
                    <td>挂号费：</td>
                    <td colspan="3">
                        <input  name="registFee" class="validatebox-text" required="true">
                    </td>
                </tr>
                <tr>
                    <td>挂号员：</td>
                    <td>
                        <input  name="operator" class="validatebox-text" required="true">
                    </td>
                    <td>挂号日期：</td>
                    <td colspan="3">
                        <input  name="registeringDate" class="easyui-datebox" >
                    </td>
                    <td>诊疗费：</td>
                    <td colspan="3">
                        <input  name="clinicFee" class="validatebox-text" required="true">
                    </td>

                </tr>
                <tr>
                    <td>退号员：</td>
                    <td>
                        <input  name="returnedOperator" class="validatebox-text">
                    </td>
                    <td>退号日期：</td>
                    <td colspan="3">
                        <input  name="returnedDate" class="easyui-datebox" required="true" id="returnDate">
                    </td>
                    <td>其他费用：</td>
                    <td colspan="3">
                        <input  name="otherFee" class="validatebox-text" required="true">
                    </td>

                </tr>
                <tr>
                    <td>支付方式：</td>
                    <td>
                        <input  name="payWay" class="validatebox-text" required="true">
                    </td>
                    <td>使用卡类：</td>
                    <td colspan="3">
                        <input  name="cardName" class="validatebox-text" required="true">
                    </td>
                    <td>使用卡号：</td>
                    <td colspan="3">
                        <input  name="cardNo" class="validatebox-text" required="true">
                    </td>
                </tr>
            </table>

        </div>
        </form>
    </div>

    </div>
</div>
</body>
</html>